package com.jwiki.app.jkeeper.service;

import java.util.List;

import com.jwiki.app.jkeeper.common.jdbc.Page;
import com.jwiki.app.jkeeper.controller.form.CategoryForm;
import com.jwiki.app.jkeeper.repository.bean.CategoryBean;
import com.jwiki.app.jkeeper.repository.bean.SubCategoryBean;
import com.jwiki.app.jkeeper.repository.model.CategoryModel;

public interface CategoryService {

    List<CategoryBean> getCategory(CategoryForm form);

    Page<CategoryBean> getCategoryByPage(CategoryForm form);

    boolean removeCategory(List<Long> categoryIds);

    boolean saveCategory(CategoryForm form);

    List<SubCategoryBean> getSubCategory(CategoryForm form);

    List<CategoryModel> getParentCategory(CategoryForm form);

}
